using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples()
{
void Example()
{
TOpenCLVector a,s,v;
MtxVec.CreateIt(
out a,
out s,
out c);
try
{
a.CopyFromArray(
new double[] {0,Math387.PIDIV2,Math387.PI);
a.SinCos(s,c);
// s=[0,1,0], c =[1,0,-1]
}
finally
{
MtxVec.FreeIt(
ref a,
ref s,
ref c);
}
}
}